package com.example.administrator.uiautomator.testcases.login;

import com.example.administrator.uiautomator.BasicTest;

import org.junit.Test;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertFalse;

/**
 * Created by Administrator on 2017/7/4.
 */

public class Login2 extends BasicTest{


    @Test
    public void name() throws Exception {
        helper.getPageCommon().clickMyTab();
        helper.getPageMy().clickLoginBtn();
        helper.getPageLogin().login("robotium2016@163.com","87654321");
        helper.getPageLogin().clickBackBtn();
        helper.getPageMy().clickLoginBtn();
        assertEquals("",helper.getPageLogin().getNameEditText().getText().toString());

    }

}
